mt76: Use the correct hweight8() function
authorBen Hutchings <ben@decadent.org.uk>
Tue, 12 Feb 2019 15:20:48 +0000 (15:20 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Jun 2019 22:16:58 +0000 (23:16 +0100)
commit5272affecef318e26228d9754eeb8351929c2830
treeb51158d6cbb013d52d2e329e0e6f289f2d796794
parent2e5d15f5bea133846bab49379c1980a6265f3eec
mt76: Use the correct hweight8() function

mt76_init_stream_cap() and mt76_get_txpower() call __sw_hweight8()
directly, but that's only defined if CONFIG_GENERIC_HWEIGHT is
enabled.  The function that works on all architectures is hweight8().

Fixes: 551e1ef4d291 ("mt76: add mt76_init_stream_cap routine")
Fixes: 9313faacbb4e ("mt76: move mt76x02_get_txpower to mt76 core")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
[bwh: For 4.19, drop change in mt76_get_txpower()]

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name mt76-use-the-correct-hweight8-function.patch
drivers/net/wireless/mediatek/mt76/mac80211.c